﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="UpdateSchedule.aspx.cs" Inherits="SWEN_HMS.StaffHousekeepingModule.UpdateSchedule" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">



        .auto-style2
        {
            width: 100%;
        }
        .auto-style22
        {
            height: 7px;
        }
        .auto-style25
        {
            height: 7px;
            width: 128px;
        }
        .auto-style23
        {
            height: 7px;
            width: 229px;
        }
        .auto-style24
        {
            height: 7px;
        }
        .auto-style17
        {
            width: 128px;
            height: 124px;
        }
        .auto-style19
        {
            height: 124px;
            width: 229px;
        }
        .auto-style18
        {
            height: 124px;
        }
        .auto-style4
        {
            width: 128px;
            height: 21px;
        }
        .auto-style20
        {
            height: 21px;
            width: 229px;
        }
        .auto-style5
        {
            height: 21px;
        }
        .auto-style3
        {
            width: 128px;
        }
        .auto-style21
        {
            width: 229px;
        }
        .auto-style11
        {
            width: 128px;
            height: 26px;
        }
        .auto-style12
        {
            width: 229px;
            height: 26px;
        }
        .auto-style13
        {
            height: 26px;
        }
        .auto-style14
        {
            width: 128px;
            height: 29px;
        }
        .auto-style15
        {
            width: 229px;
            height: 29px;
        }
        .auto-style16
        {
            height: 29px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="auto-style2">
        <tr>
            <td class="auto-style22" colspan="3" valign="middle">
                <asp:Label ID="outcomeLabel" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="auto-style25" valign="middle">Schedule/Housekeeping ID</td>
            <td class="auto-style23" valign="middle">
                <asp:Label ID="housekeepingIDLabel" runat="server"></asp:Label>
            </td>
            <td class="auto-style24" valign="middle"></td>
        </tr>
        <tr>
            <td class="auto-style17" valign="middle">Staff ID</td>
            <td class="auto-style19" valign="middle">
                <asp:ListBox ID="staffIDListBox" runat="server" AutoPostBack="True" Height="120px" OnSelectedIndexChanged="staffIDListBox_SelectedIndexChanged" Width="200px"></asp:ListBox>
            </td>
            <td class="auto-style18" valign="middle">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="staffIDListBox" ErrorMessage="Please select a Staff ID!"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="auto-style4" valign="middle">Staff Name</td>
            <td class="auto-style20" valign="middle">
                <asp:Label ID="stfNameLabel" runat="server"></asp:Label>
            </td>
            <td class="auto-style5" valign="middle"></td>
        </tr>
        <tr>
            <td class="auto-style4" valign="middle">Position</td>
            <td class="auto-style20" valign="middle">
                <asp:Label ID="stfPositionLabel" runat="server"></asp:Label>
            </td>
            <td class="auto-style5" valign="middle">&nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style17" valign="middle">Room No.<br />
                (for Room Maintenance Personnels)</td>
            <td class="auto-style19" valign="middle">
                <asp:ListBox ID="roomNumListBox" runat="server" Height="120px" Width="200px"></asp:ListBox>
            </td>
            <td class="auto-style18" valign="middle">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="roomNumListBox" ErrorMessage="Please select a Room Number!"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="auto-style3" valign="middle">Remarks</td>
            <td class="auto-style21" valign="middle">
                <asp:RadioButtonList ID="remarksRadioButton" runat="server" AutoPostBack="True" OnSelectedIndexChanged="scheduleRadioButton_SelectedIndexChanged" RepeatDirection="Horizontal" Width="200px">
                    <asp:ListItem Value="Yes">Yes</asp:ListItem>
                    <asp:ListItem Selected="True">No</asp:ListItem>
                </asp:RadioButtonList>
                <asp:TextBox ID="remarksTextBox" runat="server" TextMode="MultiLine" Width="200px"></asp:TextBox>
            </td>
            <td valign="middle">&nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style11" valign="middle">Job Date</td>
            <td class="auto-style12" valign="middle">
                <asp:TextBox ID="jobDateTextbox" runat="server" Width="200px"></asp:TextBox>
            </td>
            <td class="auto-style13" valign="middle">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="jobDateTextbox" ErrorMessage="Please key in the Date!"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="auto-style14" valign="middle">Job Time</td>
            <td class="auto-style15" valign="middle">
                <asp:DropDownList ID="jobTimeHoursDropDown" runat="server" CausesValidation="True" Width="50px">
                    <asp:ListItem>0</asp:ListItem>
                    <asp:ListItem>1</asp:ListItem>
                    <asp:ListItem>2</asp:ListItem>
                    <asp:ListItem>3</asp:ListItem>
                    <asp:ListItem>4</asp:ListItem>
                    <asp:ListItem>5</asp:ListItem>
                    <asp:ListItem>6</asp:ListItem>
                    <asp:ListItem>7</asp:ListItem>
                    <asp:ListItem>8</asp:ListItem>
                    <asp:ListItem>9</asp:ListItem>
                    <asp:ListItem>10</asp:ListItem>
                    <asp:ListItem>11</asp:ListItem>
                    <asp:ListItem>12</asp:ListItem>
                    <asp:ListItem>13</asp:ListItem>
                    <asp:ListItem>14</asp:ListItem>
                    <asp:ListItem>15</asp:ListItem>
                    <asp:ListItem>16</asp:ListItem>
                    <asp:ListItem>17</asp:ListItem>
                    <asp:ListItem>18</asp:ListItem>
                    <asp:ListItem>19</asp:ListItem>
                    <asp:ListItem>20</asp:ListItem>
                    <asp:ListItem>21</asp:ListItem>
                    <asp:ListItem>22</asp:ListItem>
                    <asp:ListItem>23</asp:ListItem>
                </asp:DropDownList>
                &nbsp;:
                <asp:TextBox ID="jobTimeMinsTextbox" runat="server" CausesValidation="True" MaxLength="2" Width="30px">00</asp:TextBox>
                &nbsp;hours</td>
            <td class="auto-style16" valign="middle">
                <asp:RangeValidator ID="minsRangeValid" runat="server" ControlToValidate="jobTimeMinsTextbox" ErrorMessage="Please enter 0-60 for time in Minutes." MaximumValue="59" MinimumValue="0" Type="Integer"></asp:RangeValidator>
                &nbsp;
                <asp:RequiredFieldValidator ID="hrsRangeValid" runat="server" ControlToValidate="jobTimeHoursDropDown" ErrorMessage="Please fill in Hours field!"></asp:RequiredFieldValidator>
                &nbsp;
                <asp:RequiredFieldValidator ID="minsRangeValid2" runat="server" ControlToValidate="jobTimeMinsTextbox" ErrorMessage="Please fill in Mintues field!"></asp:RequiredFieldValidator>
            </td>
        </tr>
    </table>
    <br />
    <asp:Button ID="updateSchedBtn" runat="server" CssClass="btnCSS" OnClick="submitSchedBtn_Click" Text="Update Schedule" />
    <asp:Button ID="backToViewScheduleBtn" runat="server" CausesValidation="False" CssClass="btnCSS" OnClick="backToViewScheduleBtn_Click" Text="Return to View Schedule" />
</asp:Content>
<asp:Content ID="Content5" runat="server" contentplaceholderid="pageTitlePHolder">
    <span class="auto-style1" style="color: #000000">Update Housekeeping Schedule</span>
</asp:Content>

